import instance from '@/utils/request';

//用户角色页面
export function GetRoleDtoAsyne(data) {
    return instance.request({
        url: "api/Role/GetRoleDtoAsyne",
        method: "post",
        data
    })
}

//权限列表页面
export function AddRoleAsyne(data) {
    return instance.request({
        url: "api/Role/AddRoleAsyne",
        method: "post",
        data
    })
}

//角色分配权限
export function DelRoleDtoAsyne(data) {
    return instance.request({
        url: "api/Role/DelRoleDtoAsyne",
        method: "post",
        data
    })
}
//角色分配权限
export function RackRoleDto(data) {
    return instance.request({
        url: "api/Role/RackRoleDto",
        method: "post",
        data
    })
}
//角色分配权限
export function UpdRoleAsync(data) {
    return instance.request({
        url: "api/Role/UpdRole",
        method: "post",
        data
    })
}
//角色分配权限
export function GetRoleMoent(data) {
    return instance.request({
        url: "api/Role/GetRoleMoent",
        method: "post",
        data
    })
}
//角色分配权限
export function AddRolePermissionapi(data) {
    return instance.request({
        url: "api/Role/AddRolePermission",
        method: "post",
        data
    })
}
//角色分配权限
export function SelRolePermissionAsync(data) {
    return instance.request({
        url: "api/Role/SelRolePermission",
        method: "post",
        data
    })
}